//
//  PListManager.h
//  SpeedTap
//
//  Created by Chi Ho Chiu on 2/9/11.
//  Copyright 2011 Individual. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"

@interface PListManager : CCNode {
    NSMutableDictionary *parentDict;
}
@property (nonatomic, retain) NSMutableDictionary *parentDict;

//With a plist file name given, create and return PListManager object to caller
+(PListManager *) openFile:(NSString *)strFileName;

//Close plist file once finished, and self destruct
-(void) closeFile;

//With a path given, return the value of given key
-(id) getValueByPath:(CCArray *)pathArray key:(NSString *)strKey;

//With a path given, return some values of given keys
-(NSMutableDictionary *) getSomeValuesByPath:(CCArray *)pathArray keys:(CCArray *)strKeys;

//With a path given, return all values of all items
-(NSMutableDictionary *) getAllValuesByPath:(CCArray *)pathArray;

-(CCArray *)iteratePathArray:(CCArray *)pathArray;
@end
